/**
 * 插件流式创建任务DTO
 */
export default class PluginStreamCreateTaskResponseDTO {
    /**
     * @type {'child' | 'parent'}
     */
    taskType
    /**
     * @type {PluginCreateTaskResponseDTO | PluginCreateParentTaskResponseDTO}
     */
    task

    /**
     *
     * @param {'child' | 'parent'} taskType
     * @param {PluginCreateTaskResponseDTO | PluginCreateParentTaskResponseDTO} task
     */
    constructor(taskType, task) {
        this.taskType = taskType
        this.task = task
    }
}
